import {
  JIN_CHU_DEFAULT,
  TimeDetail,
  TextDetail,
  StatusDetail,
  ENERGY,
  DEFAULT_MSG_STATUS,
  STAGE_REMAIN_TIME
} from "../../constant";
// 真空炉-Z16
export const MAP_DEATIL_VACUUM_FURNACE_Z16 = {
  // 上部分
  ...DEFAULT_MSG_STATUS,
  Heatting: StatusDetail(
    "downArea",
    "加热",
    "Heatting",
    require("@/assets/images/shebeiIcon/msg_2.png")
  ),

  pressureValveStatus: StatusDetail(
    "downArea",
    "分压阀状态",
    "pressureValveStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  inflationValveStatus: StatusDetail(
    "downArea",
    "充Ar阀状态",
    "inflationValveStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  replenishValveStatus: StatusDetail(
    "downArea",
    "补气阀状态",
    "replenishValveStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  atmosphereValveStatus: StatusDetail(
    "downArea",
    "大气阀状态",
    "atmosphereValveStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  refrigeratorStatus: StatusDetail(
    "downArea",
    "制冷机状态",
    "refrigeratorStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  diffusionPumpStatus: StatusDetail(
    "downArea",
    "扩散泵状态",
    "diffusionPumpStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  frontLevlValveStatus: StatusDetail(
    "downArea",
    "前级阀状态",
    "frontLevlValveStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  preExtractionValveStatus: StatusDetail(
    "downArea",
    "预抽阀状态",
    "preExtractionValveStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  maintenanceValveStatus: StatusDetail(
    "downArea",
    "维持阀状态",
    "maintenanceValveStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  quarantineValveStatus: StatusDetail(
    "downArea",
    "隔离阀状态",
    "quarantineValveStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  maintenancePumpStatus: StatusDetail(
    "downArea",
    "维持泵状态",
    "maintenancePumpStatus",
    require("@/assets/images/shebeiIcon/msg_13.png")
  ),
  highVacuumValueStatus: StatusDetail(
    "downArea",
    "高真空阀状态",
    "highVacuumValueStatus",
    require("@/assets/images/shebeiIcon/msg_1.png")
  ),
  rootsPumpStatus: StatusDetail(
    "downArea",
    "罗茨泵状态",
    "rootsPumpStatus",
    require("@/assets/images/shebeiIcon/msg_1.png")
  ),
  mechanicsPumpStatus: StatusDetail(
    "downArea",
    "机械泵状态",
    "mechanicsPumpStatus",
    require("@/assets/images/shebeiIcon/msg_1.png")
  ),
  ringSuo1: StatusDetail(
    "downArea",
    "卡环锁紧到位1状态",
    "ringSuo1",
    require("@/assets/images/shebeiIcon/msg_1.png")
  ),
  ringSuo2: StatusDetail(
    "downArea",
    "卡环锁紧到位2状态",
    "ringSuo2",
    require("@/assets/images/shebeiIcon/msg_1.png")
  ),
  ringSong1: StatusDetail(
    "downArea",
    "卡环松开到位1",
    "ringSong1",
    require("@/assets/images/shebeiIcon/msg_1.png")
  ),
  ringSong2: StatusDetail(
    "downArea",
    "卡环松开到位2状态",
    "ringSong2",
    require("@/assets/images/shebeiIcon/msg_1.png")
  ),
  fanStatus: StatusDetail(
    "downArea",
    "风机状态",
    "fanStatus",
    require("@/assets/images/shebeiIcon/msg_1.png")
  ),

  // meterRunPgmNO: TextDetail(
  //   "downArea",
  //   "程序号",
  //   "meterRunPgmNO",
  //   require("@/assets/images/shebeiIcon/msg_4.png")
  // ),
  meterRunStageNO: TextDetail(
    "downArea",
    "阶段号",
    "meterRunStageNO",
    require("@/assets/images/shebeiIcon/msg_5.png")
  ),
  ...STAGE_REMAIN_TIME,
  meter1RealTemp: TimeDetail(
    "downArea",
    "PV",
    "meter1RealTemp",
    require("@/assets/images/shebeiIcon/msg_7.png"),
    "℃"
  ),
  meter1ControlTemp: TimeDetail(
    "downArea",
    "SP",
    "meter1ControlTemp",
    require("@/assets/images/shebeiIcon/msg_7.png"),
    "℃"
  ),
  meter1OverlTemp: TimeDetail(
    "downArea",
    "超温温度",
    "meter1OverlTemp",
    require("@/assets/images/shebeiIcon/msg_7.png"),
    "℃"
  ),
  // 能源信息
  ...ENERGY,
  openHeating: TextDetail(
    "downArea",
    "开加热点(炉体)设定值",
    "openHeating",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "Pa"
  ),
  highVacuumValve: TextDetail(
    "downArea",
    "开高真空阀(炉体)设定值",
    "highVacuumValve",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "Pa"
  ),
  rootsPumpBodyOpen: TextDetail(
    "downArea",
    "开罗茨泵点(炉体)",
    "rootsPumpBodyOpen",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "Pa"
  ),
  diffusionPumpInletOpen: TextDetail(
    "downArea",
    "开扩散泵点(泵口)设定值",
    "diffusionPumpInletOpen",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "Pa"
  ),
  rootsPumpInletOpen: TextDetail(
    "downArea",
    "开罗茨泵点(泵口) 设定值",
    "rootsPumpInletOpen",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "Pa"
  ),
  frontVacuum: TextDetail(
    "downArea",
    "前级真空度pa",
    "frontVacuum",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "Pa"
  ),
  furnaceVacuumDegree: TextDetail(
    "downArea",
    "炉体真空度pa",
    "furnaceVacuumDegree",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "Pa"
  ),
  furnacePressure: TextDetail(
    "downArea",
    "炉内压力pa",
    "furnacePressure",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "Pa"
  ),
  furnaceReturnWaterTemp: TextDetail(
    "downArea",
    "炉体回水温度",
    "furnaceReturnWaterTemp",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "℃"
  ),
  diffusionPumpWateTemp: TextDetail(
    "downArea",
    "扩散泵水温度",
    "diffusionPumpWateTemp",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "℃"
  ),
  exchangerWaterTemp: TextDetail(
    "downArea",
    "交换器水温度",
    "exchangerWaterTemp",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "℃"
  ),
  magneticFluidWaterTemp: TextDetail(
    "downArea",
    "磁流体水温度",
    "magneticFluidWaterTemp",
    require("@/assets/images/shebeiIcon/msg_1.png"),
    "℃"
  ),
  ...JIN_CHU_DEFAULT
};

// 真空炉 Z-16
export const VACUUM_FORMULA_INFO_Z16 = [
  // {
  //   label: "阶段",
  //   key: "stageId",
  //   value: "",
  //   type: "",
  //   stageId: ""
  // },
  {
    label: "设定温度℃",
    key: "oneExpandInfo",
    value: "",
    type: "input",
    oneExpandInfo: ""
  },
  {
    label: "设定时间",
    key: "twoExpandInfo",
    value: "",
    type: "input",
    twoExpandInfo: ""
  },
  {
    label: "关加热",
    key: "threeExpandInfo",
    value: "",
    type: "radio",
    threeExpandInfo: "",
    defaultValue: "0",
    options: [
      {
        label: "开",
        value: "1"
      },
      {
        label: "关",
        value: "0"
      }
    ]
  },
  {
    label: "确保平台",
    key: "fourExpandInfo",
    value: "",
    type: "radio",
    fourExpandInfo: "",
    defaultValue: "0",
    options: [
      {
        label: "是",
        value: "1"
      },
      {
        label: "否",
        value: "0"
      }
    ]
  },
  {
    label: "分开压",
    key: "fiveExpandInfo",
    value: "",
    type: "radio",
    fiveExpandInfo: "",
    defaultValue: "0",
    options: [
      {
        label: "开",
        value: "1"
      },
      {
        label: "关",
        value: "0"
      }
    ]
  },
  {
    label: "sixExpandInfo",
    key: "sixExpandInfo",
    value: "",
    type: "radio",
    sixExpandInfo: "",
    hide: true
  },
  {
    label: "sevenExpandInfo",
    key: "sevenExpandInfo",
    value: "",
    type: "radio",
    sevenExpandInfo: "",
    hide: true
  },
  {
    label: "eightExpandInfo",
    key: "eightExpandInfo",
    value: "",
    type: "radio",
    eightExpandInfo: "",
    hide: true
  },
  {
    label: "nineExpandInfo",
    key: "nineExpandInfo",
    value: "",
    type: "radio",
    eightExpandInfo: "",
    hide: true
  },
  {
    label: "tenExpandInfo",
    key: "tenExpandInfo",
    value: "",
    type: "radio",
    eightExpandInfo: "",
    hide: true
  }
];

// 真空炉Z16的 图表展示字段
export const CHART_KEYS_Z16 = [
  {
    key: "meter1RealTemp",
    label: "PV1"
  }
  // {
  //   key: "meter2RealTemp",
  //   label: "PV2"
  // },
  // {
  //   key: "meter3RealTemp",
  //   label: "PV3"
  // }
];
